package com.base.service.impl;

import com.base.mapper.voipmapper.GoodsClassifyMapper;
import com.base.po.voip.GoodsClassify;
import com.base.service.GoodsClassifyService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service("goodsClassifyService")
public class GoodsClassifyServiceImpl implements GoodsClassifyService {

    @Autowired
    private GoodsClassifyMapper goodsClassifyMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return goodsClassifyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GoodsClassify record) {
        return goodsClassifyMapper.insert(record);
    }

    @Override
    public int insertSelective(GoodsClassify record) {
        return goodsClassifyMapper.insertSelective(record);
    }

    @Override
    public GoodsClassify selectByPrimaryKey(String id) {
        return goodsClassifyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(GoodsClassify record) {
        return goodsClassifyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GoodsClassify record) {
        return goodsClassifyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GoodsClassify> selectByAll(GoodsClassify record) {
        return goodsClassifyMapper.selectByAll(record);
    }

    @Override
    public int countByOptAll(String agentid, Integer type, String gid) {
        return goodsClassifyMapper.countByOptAll(agentid, type, gid);
    }

    @Override
    public List<GoodsClassify> selectByOptAll(Page page, String agentid, Integer type, String gid) {
        return goodsClassifyMapper.selectByOptAll(page, agentid, type, gid);
    }
}
